<?php
/**
 * 脚本更新cache/activity/下的缓存
 */

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';


use Biz\cache\activity\McnUser;
use hhz\constant\redis\redisKeys;

/**
 * 1
 */
echo "执行导入数据g_biz/cache/activity/DailyReportWelfareClubUser方法.start".PHP_EOL;
//$redis = new \Hhz\Redis\newCache(\hhz\constant\redis\redisKeys::KEY_B_CACHE_DAILY_REPORT_WELFARE_CLUB_USER);
//$Sum =  DailyReportWelfareClubUser::getData();
//$redis->setCache($Sum);
//echo 'num:'.$redis->getCache().PHP_EOL;

echo "执行导入数据g_biz/cache/activity/DailyReportWelfareClubUser方法.end".PHP_EOL.PHP_EOL;
/**
 * 2
 */
echo "执行导入数据g_biz/cache/activity/mcnUser方法.start".PHP_EOL;
$starUsers =  McnUser::getItems();
$sConstKey = redisKeys::KEY_C_OTHER_MCN_USER;
$redis = new \Hhz\Redis\otherRedis($sConstKey);
$redis->del($sConstKey);
$redis->sadd($sConstKey,$starUsers);
$redis->expire($sConstKey, 86400 *2);
echo "执行导入数据g_biz/cache/activity/mcnUser方法.end".PHP_EOL.PHP_EOL;
